
// let a = {};
// let b = [];
// import {a as _a} from './a';
//import selfName,{f,a as _a} from './a';
import foo from './a';
import {b} from './b';
import {c} from './c';
let a = 1000;
console.log(foo.a + b + c + a);

// 用对象的原型__proto__模拟类【class】的实现
// function Person(name,age,gender) {//构造器 构造函数
//     this.name = name;
//     this.age = age;
//     this.gender = gender;
// }
// Person.prototype = {
//     constructor:Person,//还原构造器
//     eat: function () {
//       console.log('i am eating now!');
//     }
// };
// let aa = new Person('aa',18,false);
// aa.eat();
class Person {
    constructor(name,age,gender){
        this.name = name;
        this.age = age;
        this.gender = gender;
    }
    eat() {
        console.log('i am eating now!');
    }
}
let aa = new Person('aa',18,false);
aa.eat();

